<?php

class UsuariosView extends Usuarios{

	public function listar($arr){
		$total = count($arr);
		for($i = 0;$i < $total;$i++){
		      	if($i%2 == 0){
		      		$back = "#FFFFFF";
		      	}else{
		      		$back = "#EBEBEB";
		      	}
				echo '<table width="100%" border="0" cellpadding="0" class="texto">';
					echo '<tr bgcolor="',$back,'">';
						echo '<td width="60%">',$arr[$i]['login'],'</td>';
						echo '<td width="20%" align="center" onclick="javascript:editar(',$arr[$i]['idusuarios'],',\'usuarios\');" class="tabelaB"><img src="http://icons.iconarchive.com/icons/fasticon/isimple-system/32/app-edit-icon.png" width="20" align="absmiddle" /> Editar</td>';
						echo '<td width="20%" id="editar" align="center" onclick="javascript:excluir(',$arr[$i]['idusuarios'],',\'Usuarios\');" class="tabelaB"><img src="http://icons.iconarchive.com/icons/fasticon/isimple-system/32/app-delete-icon.png" width="20" align="absmiddle" /> Excluir</td>';
					echo '</tr>';
				echo '</table>';
	      }
	}
}
?>